<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>油递员</title>
<link href="assets/styles/font-awesome.min.css?v=20160115"
	rel="Stylesheet" type="text/css" />
<link href="assets/styles/main.css?v=20160115" rel="Stylesheet"
	type="text/css" />
<link
	href="assets/plugins/nice-validator/jquery.validator.css?v=20160115"
	rel="Stylesheet" type="text/css" />
<script type="text/javascript" src="assets/scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() { 
	startInit('mainFrame', 560);})
</script>
</head>
<body>
	<%@ include file="head.jsp"%>
	<div class="meijieContent">
		<%@ include file="left.jsp"%>
		<div class="meijieRight">
			<iframe name="mainFrame" id="mainFrame" frameborder="0"
				src="home.jsp" scrolling="no"
				style="margin:0 auto;width:100%;height:100%;"></iframe>
		</div>

	</div>
</body>
<script type="text/javascript">
	var browserVersion = window.navigator.userAgent.toUpperCase();
	var isOpera = false;
	var isFireFox = false;
	var isChrome = false;
	var isSafari = false;
	var isIE = false;
	var iframeTime;
	function reinitIframe(iframeId, minHeight) {
		try {
			var iframe = document.getElementById(iframeId);
			var bHeight = 0;
			if (isChrome == false && isSafari == false)
				bHeight = iframe.contentWindow.document.body.scrollHeight;

			var dHeight = 0;
			if (isFireFox == true)
				dHeight = iframe.contentWindow.document.documentElement.offsetHeight + 2;
			else if (isIE == false && isOpera == false)
				dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
			else
				bHeight += 3;
			var height = Math.max(bHeight, dHeight);
			if (height < minHeight)
				height = minHeight;
			iframe.style.height = height + "px";
		} catch (ex) {
		}
	}
	function startInit(iframeId, minHeight) {
		isOpera = browserVersion.indexOf("OPERA") > -1 ? true : false;
		isFireFox = browserVersion.indexOf("FIREFOX") > -1 ? true : false;
		isChrome = browserVersion.indexOf("CHROME") > -1 ? true : false;
		isSafari = browserVersion.indexOf("SAFARI") > -1 ? true : false;
		if (!!window.ActiveXObject || "ActiveXObject" in window)
			isIE = true;
		reinitIframe(iframeId, minHeight);
		if (iframeTime != null)
			clearInterval(iframeTime)
		iframeTime = window.setInterval("reinitIframe('" + iframeId + "',"
				+ minHeight + ")", 100);
	}
</script>
</html>
